package com.neu.service.impl;

import com.neu.dao.IreflectDao;
import com.neu.dao.impl.ReflectDao;
import com.neu.pojo.Model;
import com.neu.pojo.Problem;
import com.neu.service.IreflectService;

public class ReflectService implements IreflectService {
	private IreflectDao reflectDao = ReflectDao.getInstance();
	
	private static IreflectService reflectService = new ReflectService();
	private ReflectService() {}
	public static IreflectService getInstance() {
		return reflectService;
	}
	
	//删除一个模板中的问题，只动reflect
	@Override
	public boolean delete(Model m,Problem p) {
		return reflectDao.delete(m, p);
	}
	
}
